<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <jsp:include page="${pageContext.request.contextPath}/WEB-INF/views/screen/admin/resource.jsp"/>
</head>
<body>
<div class="layui-collapse">
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">新增|编辑</h2>
        <div class="layui-colla-content layui-show">
            <form id="editForm" class="layui-form layui-form-pane" action="">
                <input type="hidden" id="id" name="id" value="${data.id}"/>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">账号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="userName" lay-verify="required" placeholder="请输入账号" autocomplete="off"
                                   class="layui-input" value="${data.userName}">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">昵称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="nickName" lay-verify="required" placeholder="请输入昵称" autocomplete="off"
                                   class="layui-input" value="${data.nickName}">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">手机号</label>
                        <div class="layui-input-inline">
                            <input type="text" name="mobilePhone" lay-verify="required" placeholder="请输入手机号" autocomplete="off"
                                   class="layui-input" value="${data.mobilePhone}">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">角色</label>
                    <div class="layui-input-inline">
                        <select  name="roleId" lay-verify="required" lay-search>
                            <option value="">请选择博客类型</option>
                            <c:forEach var="sysRole" items="${sysRoleList }">
                                <option value="${sysRole.id }" <c:if
                                        test="${sysRole.id ==data.roleId}"> selected</c:if> >${sysRole.roleName }</option>
                            </c:forEach>
                        </select>
                    </div>

                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <c:choose>
                            <c:when test="${type!='look'}">
                                <button class="layui-btn" lay-submit lay-filter="save">提交</button>
                            </c:when>
                        </c:choose>
                        <a href="/admin/sysUser/index" class="layui-btn">返回</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/js/ux/sysUser/sysUser.js"></script>
</body>
</html>


